<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Platform_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-platform_type" class="form-control selectpicker" name="row[platform_type]">
                {foreach name="platformList" item="vo"}
                <option value="{$key}">{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Packages_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-packages_id" class="form-control" name="row[packages_id]" type="text" value="">
        </div>
    </div>
    <input name="row[type]" type="hidden" value="3">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('供应商')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-supplier" class="form-control" name="row[supplier]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_name" class="form-control" name="row[user_name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cate_id')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-cate_id" class="form-control selectpicker" name="row[cate_id]">
                {foreach name="cateIdList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gui_address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-gui_address" class="form-control" name="row[gui_address]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Paisong')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-paisong" class="form-control selectpicker" name="row[paisong]">
                {foreach name="paisongList" item="vo"}
                <option value="{$key}">{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label for="c-photos" class="control-label col-xs-12 col-sm-2">{:__('Photos')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-photos" data-rule="" class="form-control" size="50" name="row[photos]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-photos" class="btn btn-danger faupload" data-input-id="c-photos" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-photos"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-photos" class="btn btn-primary fachoose" data-input-id="c-photos" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-photos"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-photos"></ul>
        </div>
    </div>

    <div class="form-group">
        <label for="c-photoLists" class="control-label col-xs-12 col-sm-2">{:__('Photolists')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-photoLists" data-rule="" class="form-control" size="50" name="row[photoLists]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-photoLists" class="btn btn-danger faupload" data-input-id="c-photoLists" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-photoLists"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-photoLists" class="btn btn-primary fachoose" data-input-id="c-photoLists" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-photoLists"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-photoLists"></ul>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_channel')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-pay_channel" class="form-control selectpicker" name="row[pay_channel]">
                {foreach name="payChannelList" item="vo"}
                <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Day')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-day" class="form-control selectpicker" name="row[day]">
                {foreach name="dayList" item="vo"}
                <option value="{$key}">{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Jiesuan_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-jiesuan_type" class="form-control selectpicker" name="row[jiesuan_type]">
                {foreach name="jiesuanList" item="vo"}
                <option value="{$key}">{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hexiao_day')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hexiao_day" class="form-control" name="row[hexiao_day]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Card_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-card_type" class="form-control selectpicker" name="row[card_type]">
                {foreach name="cardTypeList" item="vo"}
                <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>



    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_extend')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-is_callback" class="form-control selectpicker" name="row[is_extend]">
                {foreach name="isExtendList" item="vo"}
                <option value="{$key}">{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">是否选号:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-is_selection" class="form-control selectpicker" name="row[is_selection]">
                {foreach name="isSelectionList" item="vo"}
                <option value="{$key}">{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">多次核销:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-is_verification" class="form-control selectpicker" name="row[is_verification]">
                {foreach name="isVerificationList" item="vo"}
                <option value="{$key}">{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Epact_set_meal')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-epact_set_meal" class="form-control" name="row[epact_set_meal]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ciyue_set_meal')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ciyue_set_meal" class="form-control" name="row[ciyue_set_meal]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Xiaohu')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-xiaohu" class="form-control" name="row[xiaohu]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pplots_profit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pplots_profit" class="form-control" name="row[pplots_profit]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pplots_yunying_profit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pplots_yunying_profit" class="form-control" name="row[pplots_yunying_profit]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('One_commission')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-one_commission" class="form-control" name="row[one_commission]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Junior_contribution')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-junior_contribution" class="form-control" name="row[junior_contribution]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('junior_contribution_tow')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-junior_contribution_tow" class="form-control" name="row[junior_contribution_tow]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tjyj')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tjyj" class="form-control" name="row[tjyj]" type="number">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Yyjl')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-yyjl" class="form-control" name="row[yyjl]" type="number" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_memo')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_memo" class="form-control" name="row[user_memo]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sc_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sc_money" class="form-control" name="row[sc_money]" type="number">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="1">
        </div>
    </div>

    <div class="form-group row">
        <label class="control-label col-xs-12 col-sm-2">{:__('Zfsm')}:</label>
        <div class="col-xs-12 col-sm-8">
            <table class="table fieldlist" data-template="basictpl" data-name="row[zfsm]" id="first-table">
                <tr>
                    <td>{:__('标题')}</td>
                    <td>{:__('内容')}</td>
                </tr>
                <tr>
                    <td colspan="5"><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></td>
                </tr>
            </table>

            <!--请注意实际开发中textarea应该添加个hidden进行隐藏-->
            <textarea name="row[zfsm]" class="form-control" cols="30" rows="5" style="display: none"></textarea>
            <script id="basictpl" type="text/html">
                <tr class="form-inline">
                    <td><input type="text" name="<%=name%>[<%=index%>][title]" class="form-control" size="15" value="<%=row.title%>" placeholder="标题"/></td>
                    <td><input type="text" name="<%=name%>[<%=index%>][intro]" class="form-control" size="15" value="<%=row.intro%>" placeholder="介绍"/></td>
                    <td>
                        <!--下面的两个按钮务必保留-->
                        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                        <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
                    </td>
                </tr>
            </script>
        </div>
    </div>

    <div class="form-group row">
        <label class="control-label col-xs-12 col-sm-2">多次结算:</label>
        <div class="col-xs-12 col-sm-8">
            <table class="table fieldlist" data-template="basictpl_two" data-name="row[duoci]" id="first-table_two">
                <tr>
                    <td>{:__('自购')}</td>
                    <td>{:__('上级')}</td>
                    <td>{:__('二级')}</td>
                    <td>{:__('区县')}</td>
                    <td>{:__('小区')}</td>
                </tr>
                <tr>
                    <td colspan="5"><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></td>
                </tr>
            </table>

            <!--请注意实际开发中textarea应该添加个hidden进行隐藏-->
            <textarea name="row[duoci]" class="form-control" cols="30" rows="5" style="display: none"></textarea>
            <script id="basictpl_two" type="text/html">
                <tr class="form-inline">
                    <td><input type="text" name="<%=name%>[<%=index%>][zigou]" class="form-control" size="15" value="<%=row.zigou%>" placeholder="自购"/></td>
                    <td><input type="text" name="<%=name%>[<%=index%>][one]" class="form-control" size="15" value="<%=row.one%>" placeholder="上级"/></td>
                    <td><input type="text" name="<%=name%>[<%=index%>][two]" class="form-control" size="15" value="<%=row.two%>" placeholder="上上级"/></td>
                    <td><input type="text" name="<%=name%>[<%=index%>][area]" class="form-control" size="15" value="<%=row.area%>" placeholder="区县"/></td>
                    <td><input type="text" name="<%=name%>[<%=index%>][xiaoqu]" class="form-control" size="15" value="<%=row.xiaoqu%>" placeholder="小区"/></td>

                    <td>
                        <!--下面的两个按钮务必保留-->
                        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                        <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
                    </td>
                </tr>
            </script>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Jie_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-jie_title" class="form-control" name="row[jie_title]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Jie_content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-jie_content" class="form-control" name="row[jie_content]"></textarea>
        </div>
    </div>



    <!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Rebate')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-rebate" class="form-control" step="0.01" name="row[rebate]" type="number">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('H5url')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-h5url" class="form-control" name="row[h5url]" type="text">-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            -->
<!--            <div class="radio">-->
<!--            {foreach name="statusList" item="vo"}-->
<!--            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> -->
<!--            {/foreach}-->
<!--            </div>-->

<!--        </div>-->
<!--    </div>-->



<!--    <div class="form-group">-->
<!--        <label for="c-jsgz" class="control-label col-xs-12 col-sm-2">结算规则:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <textarea id="c-jsgz" class="form-control" name="row[jsgz]"></textarea>-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="form-group">-->
<!--        <label for="c-spxz" class="control-label col-xs-12 col-sm-2">商品限制:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <textarea id="c-spxz" class="form-control" name="row[spxz]"></textarea>-->
<!--        </div>-->
<!--    </div>-->





    <!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Monthly')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-monthly" class="form-control" name="row[monthly]" type="text">-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Flow')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-flow" class="form-control" name="row[flow]" type="text">-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Call_minutes')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-call_minutes" class="form-control" name="row[call_minutes]" type="text">-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Pact')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-pact" class="form-control" name="row[pact]" type="text">-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Age')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-age" class="form-control" name="row[age]" type="text">
        </div>
    </div>


<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Demand')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-demand" class="form-control" name="row[demand]" type="text">-->
<!--        </div>-->
<!--    </div>-->





<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Xiadanxuzhi')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-xiadanxuzhi" class="form-control" name="row[xiadanxuzhi]" type="text">-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('User_rebate')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-user_rebate" class="form-control" name="row[user_rebate]" type="text">-->
<!--        </div>-->
<!--    </div>-->



    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
